maintainer="Michał Polański <michal@polanski.me>"
pkgname=tree-sitter-go
pkgver=0.23.1
pkgrel=0
pkgdesc="Go grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-go"
license="MIT"
arch="all"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-go/archive/v$pkgver/tree-sitter-go-$pkgver.tar.gz"
options="!check" # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
843bd5a462105f840f266f4c3250f06c0557fe6a875c886f3dd30ba9f0716f7962ac6a1a900bd340d675a9ed93970970312a68e4597ed3a1f61d9094188d9f07  tree-sitter-go-0.23.1.tar.gz
"
